<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head><title>修改密码</title>
    <link href="${pageContext.request.contextPath}/resource/css/def/bootstrap/ace/ace.css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <script type="text/javascript">
        $().ready(function(){
            $("#xgmm").click(function(){
                var password = $("#zzmc").val();
                var password1 = $("#zdbh").val();
                if(password != password1){
                	alertModel("两次输入密码不一样!");
                }else{
                    $("#formId").submit();
                }
            });
        });
    </script>
</head>
<body>
	<div class="container">
		<div class="page-header"></div>
		<form action="sysStaffController/updateSysStaffPasswd.action"
			method="post" id="formId">
			<input type="hidden" name="loginName" value="${sysStaff.loginName}" />
			<div class="form-group">
				    <label for="sysStaffName">新密码</label>
				    <input type="text" class="form-control" name="passwd" id="zzmc" placeholder="新密码" maxlength="18" >
				  </div>
				  <div class="form-group">
				    <label for="exampleInputName2">确认密码</label>
				    <input type="text" class="form-control" id="zdbh" placeholder="确认密码" maxlength="18" >
			</div>
		
			<div class="page-header">
				<table>
					<tr>
						<td style="width: 96%"></td>
						<td align="right">
							<button type="button" class="btn btn-info" id="xgmm">保存</button>
						</td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</body>
</html>